home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / jx4nt125.zip / MAKEFILE < prev    next >
Text File  |  1994-10-10  |  4KB  |  118 lines

  1. # jax4th makefile ... 32-bit ANS Forth for Windows NT
  2. # copyright (c) 1993, 1994 by jack j. woehr
  3. # p.o. box 51, golden, co 80402-0051
  4. # jax@well.sf.ca.us | JAX on GEnie | 72203.1320@compuserve.com
  5. # sysop, rcfb (303) 278-0364
  6.  
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details. (copying.txt)
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. !include <ntwin32.mak>
  22.  
  23. #################################################
  24. #    The project and ancillary products    #
  25. #################################################
  26. PROJ = jax4th
  27. EXES = jax4th.exe uniblock.exe uniascii.exe
  28. CUTILS = uniblock.exe uniascii.exe
  29. DOCS = doc\jax4th.doc
  30. EXAMPLES = example\paste.blk example\shortest.f
  31. UTILS = utils\utils.utf utils\editor.utf utils\memory.utf utils\syscalls.utf utils\ub2t.utf
  32. UTILS1 = utils\yiqing.utf utils\case.utf utils\defer.utf
  33. OBJ4TH = obj4th\dimarray.utf obj4th\multioop.utf obj4th\oopsobjs.utf
  34. LICENSE = doc\copying.txt
  35. MISC = doc\read_1st.txt
  36.  
  37. #########################
  38. #    Source files    #
  39. #########################
  40. SOURCES = jax4th.a jax4th.i jx4files.a windows.i makefile uniblock.c uniascii.c
  41. RESOURCES = jax4th.ico jax4th.rc
  42.  
  43. #################################
  44. #    Assembly control    #
  45. #################################
  46. MASM=ml.exe
  47. # make sure the correct ml.exe is in your path!
  48. MASMOPTS= /c /Cp /Ta
  49. # Assemble without linking, preserve case of user identifiers, assemble non-.ASM files.
  50. MASMEXTOPTS= /Sa /Fl$(PROJ).lst
  51. # Generate a listing file.
  52. REV = 125
  53. # Current revision
  54.  
  55. # Make all executables
  56. all: $(EXES)
  57.  
  58. # Make just the C-coded utilities
  59. cutils: $(CUTILS)
  60.  
  61. # Make Jax4th
  62. $(PROJ).exe: $(PROJ).obj $(PROJ).rbj
  63.     $(link) -subsystem:console -stack:0x8000,0x8000 -entry:main \
  64.     -section:.text,w -out:$*.exe $(PROJ).obj $(PROJ).rbj $(baselibs) \
  65.     comdlg32.lib
  66.  
  67. $(PROJ).obj: $(PROJ).a $(PROJ).i jx4files.a windows.i makefile
  68.     $(MASM) $(MASMOPTS) $(PROJ).a
  69. #    $(MASM) $(MASMEXTOPTS) $(MASMOPTS) $(PROJ).a
  70. # Choose the second line instead of the first if you want a listing file.
  71.  
  72. $(PROJ).rbj: $(PROJ).res
  73.         cvtres -$(CPU) $(PROJ).res -o $(PROJ).rbj
  74.  
  75. $(PROJ).res: $(PROJ).rc
  76.     $(rc) $(rcvars) -r -fo $(PROJ).res $(cvars) $(PROJ).rc
  77.  
  78. # Make the Unicode <> ASCII utilities
  79. uniblock.exe: uniblock.obj
  80.     $(link) $(conflags) -out:$*.exe $** $(conlibs)
  81.  
  82. uniascii.exe: uniascii.obj
  83.     $(link) $(conflags) -out:$*.exe $** $(conlibs)
  84.  
  85. # Rules
  86. .c.obj:
  87.   $(cc) $(cflags) $(cvars) $*.c
  88.  
  89. noobjs:
  90.     -erase *.obj
  91.  
  92. nolistings:
  93.     -erase *.lst *.crf
  94.  
  95. clean:
  96.     -erase *.obj
  97.     -erase *.exe
  98.  
  99. #################################
  100. #     Distribution archive    #
  101. #################################
  102.  
  103. distribution:
  104.     -pkzip -a    distrib\jx4nt$(REV).zip $(LICENSE) $(MISC)
  105.     -pkzip -a -P distrib\jx4nt$(REV).zip $(EXES)
  106.     -pkzip -a -P distrib\jx4nt$(REV).zip $(SOURCES)
  107.     -pkzip -a -P distrib\jx4nt$(REV).zip $(RESOURCES)
  108.     -pkzip -a -P distrib\jx4nt$(REV).zip $(DOCS)
  109.     -pkzip -a -P distrib\jx4nt$(REV).zip $(EXAMPLES)
  110.     -pkzip -a -P distrib\jx4nt$(REV).zip $(UTILS)
  111.     -pkzip -a -P distrib\jx4nt$(REV).zip $(UTILS1)
  112.     -pkzip -a -P distrib\jx4nt$(REV).zip $(OBJ4TH)
  113.  
  114. #########################
  115. #     END of Makefile    #
  116. #########################
  117.  
  118.